export const updateNav = (data: any, num: number, item: any = null) => {
    data = data.slice(0, num);
    if (item) {
        data.push(item);
    }
    return data;
};
